Complex YAML bridge for symfony #5
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
OneSky API export YML files as "complex yaml" when there's more than one deepness level.
Symfony has it's own YAML implementation that does not accept complex YAML
As PHP has an yml extension which understand complex YAML and can load it as a PHP array, my solution is to load our files with PHP parser and to export it with Symfony's yaml parser.
As understanding complex YAML files is a new feature, I doubt that SensioLab would update their old versions (even maintained versions), so I think the better version is to handle the problem with this bundle as it is the one woe makes a bridge between those two formats
Also, I think test wouldn't appreciate this modification as they wouldn't have yaml extension, but there is multiple composer pull requests to handle pecl extensions, but none seems to have been merged.